package com.xrtn.mapper;

import com.xrtn.bean.TUserInfo;
import com.xrtn.page.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface TUserInfoMapper {
    int deleteByPrimaryKey(Integer userId);

    int insert(TUserInfo record);

    int insertSelective(TUserInfo record);

    TUserInfo selectByPrimaryKey(Integer userId);

    List<TUserInfo> selectByPhoneInfo(String phoneInfo);

    List<TUserInfo> selectByMap(Map<String,Object> params);
    /**
     *  后台 - 查询用户列表
     * @param params
     * @return
     */
    Integer selectNewUserCount(Map<String, Object> params);
    /**
     *  后台 - 查询用户列表
     * @param params
     * @return
     */
    List<Map<String, Object>> selectUserList(Map<String, Object> params);
    List<Map<String, Object>> selectUserPageList(@Param("page")Page page,@Param("params") Map<String, Object> params);
    /**
     *  后台 - 查询用户详情
     * @return
     */
    Map<String, Object> selectUserDetail(@Param("userId") Integer userId);

    /**
     * 查询未领券的用户列表
     * @param params
     * @return
     */
    List<Map<String, Object>> selectUnUseCouponList(Map<String, Object> params);

    int updateByPrimaryKeySelective(TUserInfo record);

    int updateByPrimaryKey(TUserInfo record);
}